package com.ruoyi.handing.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.handing.mapper.AlgsReviewRecordMapper;
import com.ruoyi.handing.domain.AlgsReviewRecord;
import com.ruoyi.handing.service.IAlgsReviewRecordService;

/**
 * 已通过审核记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-20
 */
@Service
public class AlgsReviewRecordServiceImpl implements IAlgsReviewRecordService 
{
    @Autowired
    private AlgsReviewRecordMapper algsReviewRecordMapper;

    /**
     * 查询已通过审核记录
     * 
     * @param algsReviewId 已通过审核记录主键
     * @return 已通过审核记录
     */
    @Override
    public AlgsReviewRecord selectAlgsReviewRecordByAlgsReviewId(Long algsReviewId)
    {
        return algsReviewRecordMapper.selectAlgsReviewRecordByAlgsReviewId(algsReviewId);
    }

    /**
     * 查询已通过审核记录列表
     * 
     * @param algsReviewRecord 已通过审核记录
     * @return 已通过审核记录
     */
    @Override
    public List<AlgsReviewRecord> selectAlgsReviewRecordList(AlgsReviewRecord algsReviewRecord)
    {
        return algsReviewRecordMapper.selectAlgsReviewRecordList(algsReviewRecord);
    }

    /**
     * 新增已通过审核记录
     * 
     * @param algsReviewRecord 已通过审核记录
     * @return 结果
     */
    @Override
    public int insertAlgsReviewRecord(AlgsReviewRecord algsReviewRecord)
    {
        return algsReviewRecordMapper.insertAlgsReviewRecord(algsReviewRecord);
    }

    /**
     * 修改已通过审核记录
     * 
     * @param algsReviewRecord 已通过审核记录
     * @return 结果
     */
    @Override
    public int updateAlgsReviewRecord(AlgsReviewRecord algsReviewRecord)
    {
        return algsReviewRecordMapper.updateAlgsReviewRecord(algsReviewRecord);
    }

    /**
     * 批量删除已通过审核记录
     * 
     * @param algsReviewIds 需要删除的已通过审核记录主键
     * @return 结果
     */
    @Override
    public int deleteAlgsReviewRecordByAlgsReviewIds(Long[] algsReviewIds)
    {
        return algsReviewRecordMapper.deleteAlgsReviewRecordByAlgsReviewIds(algsReviewIds);
    }

    /**
     * 删除已通过审核记录信息
     * 
     * @param algsReviewId 已通过审核记录主键
     * @return 结果
     */
    @Override
    public int deleteAlgsReviewRecordByAlgsReviewId(Long algsReviewId)
    {
        return algsReviewRecordMapper.deleteAlgsReviewRecordByAlgsReviewId(algsReviewId);
    }
}
